package com.buaa.service.impl;

import com.buaa.entity.Address;
import com.buaa.mapper.AddressMapper;
import com.buaa.service.IAddressService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 省市区表 服务实现类
 * </p>
 *
 * @author baomidou
 * @since 2024-06-24
 */
@Service
public class AddressServiceImpl extends ServiceImpl<AddressMapper, Address> implements IAddressService {

    @Override
    public List<Address> getAddressByPid(Integer pid) {
        return lambdaQuery().eq(Address::getPid,pid).list();
    }
}
